package com.mall.product.mapper;

import com.mall.product.domain.biz.ProProductRecommendedBiz;
import java.util.List;
import com.mall.product.domain.entity.ProProductRecommended;

/**
 * 商品推荐Mapper接口
 *
 * @author zhonglin
 * @date 2020-05-24
 */
public interface ProProductRecommendedMapper {

  /**
   * 查询商品推荐
   *
   * @param productRecommendedId 商品推荐ID
   *                             X
   *
   * @return 商品推荐
   */
  ProProductRecommendedBiz selectProProductRecommendedById(Long productRecommendedId);

  /**
   * 查询商品推荐列表
   *
   * @param proProductRecommended 商品推荐
   *
   * @return 商品推荐集合
   */
  List<ProProductRecommendedBiz> selectProProductRecommendedList(ProProductRecommended proProductRecommended);

  /**
   * 新增商品推荐
   *
   * @param proProductRecommended 商品推荐
   *
   * @return 结果
   */
  int insertProProductRecommended(ProProductRecommended proProductRecommended);

  /**
   * 修改商品推荐
   *
   * @param proProductRecommended 商品推荐
   *
   * @return 结果
   */
  int updateProProductRecommended(ProProductRecommended proProductRecommended);

  /**
   * 删除商品推荐
   *
   * @param productRecommendedId 商品推荐ID
   *
   * @return 结果
   */
  int deleteProProductRecommendedById(Long productRecommendedId);

  /**
   * 批量删除商品推荐
   *
   * @param productRecommendedIds 需要删除的数据ID
   *
   * @return 结果
   */
  int deleteProProductRecommendedByIds(String[] productRecommendedIds);

}
